// arg0 - label
// arg1 - control name
// arg2 - art sprite
// arg3 - icon sprite

var _label, _controlname, _artspr, _iconspr;
_label = argument0;
_controlname = argument1;
_artspr = argument2;
_iconspr = argument3;

_entity = instance_create(0, 0, Entity);
_entity.label = _label;
_entity.controlname = _controlname;
_entity.artsprite = _artspr;
_entity.iconsprite = _iconspr;
_entity.uiSpriteScale = 0;

ds_list_add(EntityPickerManager.entityList, _entity);

return _entity;
